<!DOCTYPE html>
<html>
    <head>
        <meta charset='utf-8' />
        <title>CSS样式</title>
        <meta name='keywords' content=''  />
        <meta name='description' content='' />
        <style>
            
            .c2:hover+img{
                display:block;
            }
            img{
                display:none;   /*隐藏显示*/
            }
        </style>
    </head>
    <body>
        <h2>CSS样式实例:display显示隐藏</h2>
        <div class='c2'>
           <div id='c1'>XXOO</div>
           
        </div>
        <img id='aaa' src='./images/2.jpg' />
    </body>
</html>